package com.iss.service;

import com.iss.dao.UserDAO;
import com.iss.model.User;

public class UserService {
    private UserDAO userDAO = new UserDAO();

    public Boolean save(User user) {

        Boolean flag = false;

        if (user.getUserId() == null) {
            flag = userDAO.insert(user);
        } else {
            flag = userDAO.update(user);
        }
        return flag;
    }


    public Boolean remove(String user_id) {
        return  false;
    }
}
